<?php
/**
 * Created by PhpStorm.
 * User: DD
 * Date: 2016/4/22
 * Time: 0:51
 */

namespace app\admin\services;


use app\common\util\FileUploader;

class UtilService
{
    public function uploadImg()
    {
        $uploader = new FileUploader();
        $msg = $uploader->saveFile();
        if (!$msg) {
            return [true, $uploader->getUploadFileUrl()];
        }
        return [false, $msg];
    }
}